package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        return "Hello World";
    }

    @RequestMapping("/hello2")
    public String hello2(String name) {
        return "Hello!" + name + "World";
    }

    @RequestMapping("/hello3")
    public String hello3(String name) {
        return "Welcome!" + name + "World";

    }

    @RequestMapping("/hello4")
    public String hello4(String name) {
        return "Hello!" + name + "World";

    }
}